package com.xyht.sca_s.student_manage_system.modules.websocket.myEnum;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author Ikaros
 * @date 2020/1/26 16:58
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WebsocketResultEnum {

    /**
     * 通用
     */
    SUCCESS("socket", "success", "连接成功"),
    SOCKET_REPEAT("socket", "repeat", "用户在其他设备登陆"),
    /**
     * 考勤打卡
     */
    ATTENDANCE_SING_IN_STATUS_UPDATE("attendance", "sign_in_update", "学生签到状态更新"),
    ATTENDANCE_STATUS_UPDATE("attendance", "update", "考勤任务状态更新"),
    /**
     * 消息待办
     */
    TIPS_INFORM("tips", "tips_update", "消息待办更新通知"),
    ;


    private String socket_name;
    private String socket_type;
    private String socket_msg;

    WebsocketResultEnum(String socket_name, String socket_type, String socket_msg) {
        this.socket_name = socket_name;
        this.socket_type = socket_type;
        this.socket_msg = socket_msg;
    }

    public String getSocket_name() {
        return socket_name;
    }

    public String getSocket_type() {
        return socket_type;
    }

    public String getSocket_msg() {
        return socket_msg;
    }
}
